<?php /* Smarty version 2.6.26, created on 2012-05-12 14:52:51
         compiled from header_home.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'header_home.tpl', 5, false),array('modifier', 'count', 'header_home.tpl', 26, false),array('modifier', 'lower', 'header_home.tpl', 46, false),array('modifier', 'substr', 'header_home.tpl', 46, false),)), $this); ?>
<div id="top_bg_home"><div></div></div>
	
	<div id="main_container_home">
		<!-- header -->
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='blocks')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'user_navbar.tpl') : smarty_modifier_cat($_tmp, 'user_navbar.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		
		<div id="header_home">
			<div id="logo">
				<a href="<?php echo $this->_tpl_vars['rlBase']; ?>
" title="<?php echo $this->_tpl_vars['config']['site_name']; ?>
">
					<img alt="" src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/<?php if (@RL_LANG_DIR == 'rtl'): ?>rtl/<?php endif; ?>logo.png" />
				</a>
			</div>
			
			<!-- main menu -->
			<div id="main_menu_container">
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='menus')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'main_menu.tpl') : smarty_modifier_cat($_tmp, 'main_menu.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			</div>
			<!-- main menu end -->
			
			<!-- teaser area -->
			<div id="teaser">
				<div id="teaser_bg">
				<!-- print search form -->
				<?php if ($this->_tpl_vars['search_forms']): ?>
					<div class="content">
						<?php if (count($this->_tpl_vars['search_forms']) > 1): ?>
							<!-- tabs -->
							<?php if ($this->_tpl_vars['config']['search_fields_position'] == 2): ?>
								<table class="search">
								<tr class="header">
									<td class="field"><?php echo $this->_tpl_vars['lang']['search']; ?>
</td>
									<td class="value">
							<?php endif; ?>
							
							<ul class="search_tabs">
							<?php $_from = $this->_tpl_vars['search_forms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['stabsF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['stabsF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['sf_key'] => $this->_tpl_vars['search_form']):
        $this->_foreach['stabsF']['iteration']++;
?><li class="<?php if (($this->_foreach['stabsF']['iteration'] <= 1)): ?>first active<?php elseif (($this->_foreach['stabsF']['iteration'] == $this->_foreach['stabsF']['total'])): ?>last<?php endif; ?>"><?php echo $this->_tpl_vars['search_form']['name']; ?>
</li><?php endforeach; endif; unset($_from); ?>
							</ul>
							
							<?php if ($this->_tpl_vars['config']['search_fields_position'] == 2): ?>
									</td>
								</tr>
								</table>
							<?php endif; ?>
							<!-- tabs end -->
						<?php else: ?>
							<div class="search_caption"><?php if (((is_array($_tmp=$this->_tpl_vars['lang']['quick_search'][0])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)) == 'q' && @RL_LANG_DIR == 'ltr'): ?><div class="q"></div><div class="phrase"><?php echo ((is_array($_tmp=$this->_tpl_vars['lang']['quick_search'])) ? $this->_run_mod_handler('substr', true, $_tmp, 1) : substr($_tmp, 1)); ?>
</div><div class="clear"></div><?php else: ?><?php echo $this->_tpl_vars['lang']['quick_search']; ?>
<?php endif; ?></div>
						<?php endif; ?>
						
						<?php $_from = $this->_tpl_vars['search_forms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['sformsF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['sformsF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['sf_key'] => $this->_tpl_vars['search_form']):
        $this->_foreach['sformsF']['iteration']++;
?>	
							<?php $this->assign('spage_key', $this->_tpl_vars['listing_types'][$this->_tpl_vars['search_form']['listing_type']]['Page_key']); ?>
							<?php $this->assign('post_form_key', $this->_tpl_vars['sf_key']); ?>
							<?php if (count($this->_tpl_vars['search_forms']) > 1): ?>
								<div class="search_tab_area<?php if (! ($this->_foreach['sformsF']['iteration'] <= 1)): ?> hide<?php endif; ?>">
							<?php endif; ?>
							<form method="<?php echo $this->_tpl_vars['listing_types'][$this->_tpl_vars['search_form']['listing_type']]['Submit_method']; ?>
" action="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages'][$this->_tpl_vars['spage_key']]; ?>
/<?php echo $this->_tpl_vars['search_results_url']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages'][$this->_tpl_vars['spage_key']]; ?>
&amp;<?php echo $this->_tpl_vars['search_results_url']; ?>
<?php endif; ?>">
								<input type="hidden" name="action" value="search" />
								<input type="hidden" name="post_form_key" value="<?php echo $this->_tpl_vars['sf_key']; ?>
" />
								
								<?php if ($this->_tpl_vars['search_form']['arrange_field']): ?>
									<input <?php if (! ($this->_foreach['sformsF']['iteration'] <= 1)): ?>disabled="disabled"<?php endif; ?> class="search_tab_hidden" type="hidden" name="f[<?php echo $this->_tpl_vars['search_form']['arrange_field']; ?>
]" value="<?php echo $this->_tpl_vars['search_form']['arrange_value']; ?>
" />
								<?php endif; ?>
								
								<?php $this->assign('items_count', count($this->_tpl_vars['search_form']['data'])); ?>
								<?php $_from = $this->_tpl_vars['search_form']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['qsearchF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['qsearchF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['group']):
        $this->_foreach['qsearchF']['iteration']++;
?>
									<?php if ($this->_foreach['qsearchF']['iteration'] <= 5): ?>
										<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='blocks')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'fields_search.tpl') : smarty_modifier_cat($_tmp, 'fields_search.tpl')), 'smarty_include_vars' => array('fields' => $this->_tpl_vars['group']['Fields'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
									<?php endif; ?>
								<?php endforeach; endif; unset($_from); ?>
								
								<table class="search">
								<tr>
									<?php if ($this->_tpl_vars['config']['search_fields_position'] == 2): ?><td class="field"></td><?php endif; ?>
									<td class="value" colspan="2"><label><input type="checkbox" name="f[with_photo]" value="true" /> <?php echo $this->_tpl_vars['lang']['with_photos_only']; ?>
</label></td>
								</tr>
								<tr>
									<?php if ($this->_tpl_vars['config']['search_fields_position'] == 2): ?><td class="field"></td><?php endif; ?>
									<td class="lalign"><input type="submit" name="search" value="<?php echo $this->_tpl_vars['lang']['search']; ?>
" /></td>
									<?php if ($this->_tpl_vars['listing_types'][$this->_tpl_vars['search_form']['listing_type']]['Advanced_search']): ?>
										<td><a class="white_11" title="<?php echo $this->_tpl_vars['lang']['advanced_search']; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages'][$this->_tpl_vars['spage_key']]; ?>
/<?php echo $this->_tpl_vars['advanced_search_url']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages'][$this->_tpl_vars['spage_key']]; ?>
&amp;<?php echo $this->_tpl_vars['advanced_search_url']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['lang']['advanced_search']; ?>
</a></td>
									<?php endif; ?>
								</tr>
								</table>
								
							</form>
							<?php if (count($this->_tpl_vars['search_forms']) > 1): ?>
								</div>
							<?php endif; ?>
						<?php endforeach; endif; unset($_from); ?>	
					</div>
					
					<?php if (count($this->_tpl_vars['search_forms']) > 1): ?>
						<script type="text/javascript">
							flynax.searchTabs();
							flynax.multiCatsHandler();
						</script>
					<?php endif; ?>
				<?php endif; ?>
				<!-- print search form -->
				</div>
			</div>
			<!-- teaser area end -->
		</div>
		<!-- header end -->